<?php
include("Libraries/BusinessLogic/games.php");
include("Libraries/BusinessLogic/statheres.php");

$category=$_GET['selection'];
$result=show_games_by_category($category);

switch ($result['status'])
 {
	case statheres::OLA_OK:
		include("gamelist.php");
		echo_result($result['value']);
		break;
	case statheres::NO_RESULT:
		echo "<script type=\"text/javascript\">";
		echo "alert(\"No Result\")";
		echo "</script>"; 
		echo "<noscript> <center><h4><font color='red'>No Result</p></h4></font> </noscript>";
		break;
 }
?>